View Javadoc
1 /* 2 * (C) 2002 David Carr david@carr.name 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 19 package net.sourceforge.mflow.impl; 20 21 import javax.activation.DataHandler; 22 import javax.activation.DataSource; 23 24 import net.sourceforge.mflow.api.ContentHandler; 25 import net.sourceforge.mflow.api.ContentHandlerFactory; 26 27 /*** 28 * @author carrd 29 */ 30 class ContentHandlerFactoryImpl extends ContentHandlerFactory { 31 private ContentHandlerFactoryImpl() { 32 super.register(this); 33 } 34 35 static final void register() { 36 new ContentHandlerFactoryImpl(); 37 } 38 39 public ContentHandler createContentHandler(DataHandler aDataHandler) { 40 return new ContentHandlerImpl(aDataHandler); 41 } 42 43 public ContentHandler createContentHandler(DataSource aDataSource) { 44 return new ContentHandlerImpl(aDataSource); 45 } 46 47 public ContentHandler createContentHandler(Object aObj, String aMimeType) { 48 return new ContentHandlerImpl(aObj, aMimeType); 49 } 50 }

This page was automatically generated by Maven